<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="h" %>

<h:body title="courses">
	<div class="c_block">
		<div class="title">Все курсы</div>
	    <c:forEach var="course" items="${courses}">
            <div class="row">
                <div class="simple_l"><a href="<c:url value="/course/${course.id}"/>"><c:out value="${course.name}" /></a></div>
                <div class="simple_r"><a href="<c:url value="/course/${course.id}/delete"/>">Delete</a></div>
            </div>
        </c:forEach>
		<span class="last">
			  <a href="<c:url value="/course/new"/>">Добавить</a>
		</span>
	</div>
</h:body>
